home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9532 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: CONVERTING INTEGER TO ASCII??????
  5. Date: 11 Mar 1996 07:45 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <11MAR199607455980@erich.triumf.ca>
  9. References: <4i17r9$2kn@maltese.eag.unisysgsg.com>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4i17r9$2kn@maltese.eag.unisysgsg.com>, ssadra@maltese.eag.unisysgsg.com (Daniel R. Ascheman) writes...
  14. >HI all,
  15. >I need a way to convert an integer BACK to ascii so I can search for it 
  16. >in a file using the strstr() function in a file. I NEED it as an integer
  17. >AND as an ascii, is it possible?
  18.  
  19. Use sprintf()
  20.  
  21.  
  22. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  23. Internet: bennett@triumf.ca         | of one another only when one can be
  24. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  25. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  26. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  27. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  28.  
  29.